API call for report metric

The goal - to get aggregated data grouped by Escalation policy

  1. I see that on WEB UI for aggregated reporting the following API is used
    POST request
    https://mycompany.pagerduty.com/api/v1/reports/metrics
    is it possible to use it to get data? any documentation for it?

  2. How to group by escalation policy - if this end-point will be used
    https://api.pagerduty.com/analytics/metrics/incidents/al